package com.sright.bcard.component.biz.service;

import com.sright.bcard.common.service.share.dto.component.ComponentConfigWhiteListDTO;
import com.sright.bcard.component.biz.manager.ComponentConfigWhiteListManager;
import com.sright.bcard.component.share.service.ComponentConfigWhiteListService;
import com.sright.common.response.SrightResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class ComponentConfigWhiteListServiceImpl implements ComponentConfigWhiteListService {

    @Autowired
    private ComponentConfigWhiteListManager componentConfigWhiteListManager;

    @Override
    public SrightResponse<ComponentConfigWhiteListDTO> getComponentConfigWhiteListByEnterprise(Long enterpriseId) {
        return SrightResponse.defaultSuccess(componentConfigWhiteListManager.getComponentConfigWhiteListByEnterprise(enterpriseId));
    }
}
